<?php template('header',array('title'=>$post['post_title'],'keywords'=>strip_tags($post['post_title']),'description'=>utf8Substr(strip_tags($post['post_text']),0,150)));?>
<div id="wrapper">
	<div class="content">
		<div class="full">
				<div class="index-box green">
					<div class="post-title" data-postid='<?=$post['post_id']?>'>
						<h1>
							<?=$post['post_title']?>
						</h1>
						<div class="post-meta">
							<?=$post['views']?>阅读,<?=$post['replies']?>回复
						</div>	
					</div>
					<div class="post-text">
						<?=$post['post_text']?>
					</div>

				</div>
				<div class="index-box reply-box clearfix">
					<div class="box-left">
						<?=anchor("/u/".session('USERID'),img('http://bbs.uc.cn/uc_server/avatar.php?uid=12499406&size=middle'),null,'reply-user-img')?>
						<p><?=anchor("/u/".session('USERID'),session('USERNAME'))?></p>
					</div>
					<div class="box-right">
						<!-- comment box -->
						<div class="comment-box">
							<textarea name="" id="comment-text"></textarea>
							<div id="comment-tools">
								<button id="comment-img">表情</button>
								<button id="comment-btn">提交</button>
								<button id="comment-btn">放大</button>
							</div>
							<div class="emoji">
								<div class="emoji-content">
									<ul>
										<li class="active">浪小花</li>
										<li>小恐龙</li>
										<li>冷兔</li>
										<li>阿狸</li>
										<li>块猫</li>
									</ul>
									<div class="emoji-imgs">
										<ul node-type="list"><li action-type="select" action-data="insert=%5Bkm%E9%97%AE%E5%8F%B7%5D" title="km问号"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/13/km1wenhao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%88%B1%E4%BD%A0%5D" title="km爱你"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/cf/km1aini_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%99%BD%E5%9D%97%E6%97%8B%E8%BD%AC%5D" title="km白块旋转"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8e/km1baikuaixuanzhuan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BB%91%E5%9D%97%E6%97%8B%E8%BD%AC%5D" title="km黑块旋转"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/36/km1heikuaixuanzhuan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E8%8A%B1%E7%97%B4%5D" title="km花痴"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/78/km1huachi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%8F%AF%E7%88%B1%5D" title="km可爱"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/7a/km1keai_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%88%87%5D" title="km切"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ab/km1qie_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%BA%B2%E4%BA%B2%5D" title="km亲亲"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/78/km1qinqin_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%BA%B2%E4%BA%B2%E7%99%BD%E5%9D%97%5D" title="km亲亲白块"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/48/km1qinqinbaikuai_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%BA%B2%E4%BA%B2%E9%BB%91%E5%9D%97%5D" title="km亲亲黑块"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6f/km1qinqinheikuai_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%8C%96%E9%BC%BB%E5%B1%8E%5D" title="km挖鼻屎"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/b9/km1wabishi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%93%87%E5%93%87%E5%93%AD%5D" title="km哇哇哭"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/39/km1wawaku_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%9B%B4%E8%A7%82%5D" title="km围观"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/a5/km1weiguan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%A7%94%E5%B1%88%5D" title="km委屈"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8d/km1weiqu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%BE%9E%5D" title="km羞"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/47/km1xiu_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmFL%5D" title="kmFL"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/21/kmFL_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%BE%A6%E6%8E%A2%5D" title="km侦探"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/fd/kmzhentan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%98%BB%E5%98%BB%5D" title="km嘻嘻"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/67/kmxixi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%91%9C%E5%91%9C1%5D" title="km呜呜1"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ab/kmwuwu1_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%86%B7%E7%AC%91%5D" title="km冷笑"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/18/kmlengxiao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%82%AE%E4%BB%B6%5D" title="km邮件"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/35/kmyoujian_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%97%B9%E9%92%9F%5D" title="km闹钟"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/5c/kmnaozhong_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%93%BC%5D" title="km哼"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/e1/kmheng_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%97%A0%E8%AF%AD%5D" title="km无语"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/fa/kmwuyu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BB%91%E5%9D%97%E4%B8%8D%E6%B7%A1%E5%AE%9A%5D" title="km黑块不淡定"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/91/kmheikuaibudanding_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%AE%B3%E6%80%95%5D" title="km害怕"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/4e/kmhaipa_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%91%9C%E5%91%9C88%5D" title="km呜呜88"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/c7/kmwuwu88_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%80%8F%E4%BA%AE%5D" title="km透亮"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/b6/kmtouliang_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%94%94%5D" title="km唔"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ac/kmwu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%BE%A0%E7%9B%97%5D" title="km侠盗"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/99/kmxiadao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%86%89%5D" title="km醉"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/kmzui_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%BD%E8%8E%8E2%5D" title="km丽莎2"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/13/kmlisha2_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%85%B72%5D" title="km酷2"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/1c/kmku2_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%86%A8%5D" title="km憨"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/19/kmhan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%AD%E6%AF%92%5D" title="km中毒"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/41/kmzhongdu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%94%B5%E8%A7%86%5D" title="km电视"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/c4/kmdianshi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%9B%B0%5D" title="km困"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/0e/kmkun_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%AB%98%E5%85%B4%5D" title="km高兴"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ed/kmgaoxing_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%B9%BA%E9%B8%A1%E7%8C%AB%5D" title="km幺鸡猫"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/a8/kmyaojimao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BB%91%E5%8C%96%E7%AC%91%5D" title="km黑化笑"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/26/kmhaihuaxiao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E8%8A%B1%E7%8C%AB%5D" title="km花猫"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/61/kmhuamao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%A5%BD%E5%90%83%5D" title="km好吃"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/b4/kmhaochi_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmAI%5D" title="kmAI"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/bc/kmAI_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BB%91%E5%8C%96%E5%94%A0%E5%8F%A8%5D" title="km黑化唠叨"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3e/kmheihualaodao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%A5%BD%E5%90%83%E6%83%8A%5D" title="km好吃惊"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/24/kmhaochijing_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%94%A0%E5%8F%A8%5D" title="km唠叨"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/4e/kmlaodao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%9C%BC%E9%95%9C%5D" title="km眼镜"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ce/kmyanjing_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%97%AA%5D" title="km闪"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/fb/kmshan_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmV%5D" title="kmV"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9a/kmV_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%8D%E6%B7%A1%E5%AE%9A%5D" title="km不淡定"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/48/kmbudanding_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BC%BB%E8%A1%801%5D" title="km鼻血1"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/96/kmbixue1_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%A5%BD%E9%A5%BF%5D" title="km好饿"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/cf/kmhaoe_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%8A%E4%BC%A0%5D" title="km上传"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/a4/kmshangchuan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BB%91%E5%8C%96%5D" title="km黑化"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/c7/kmheihua_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%BC%BB%E8%A1%80%5D" title="km鼻血"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/38/kmbixue_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%85%B7%5D" title="km酷"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8a/kmku_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%84%81%5D" title="km愁"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/fd/kmchou_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%9B%B8%E6%9C%BA%5D" title="km相机"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/2f/kmxiangji_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%96%9C%5D" title="km喜"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/c7/kmxi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%BE%97%E6%84%8F%5D" title="km得意"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/85/kmdeyi_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%80%92%5D" title="km怒"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/23/kmnu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%94%9F%E6%B0%94%5D" title="km生气"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/d5/kmshengqi_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmDW%5D" title="kmDW"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/ff/kmDW_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%91%9C%E8%A1%80%E6%B3%AA%5D" title="km呜血泪"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/26/km1wuxuelei_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmPS%5D" title="kmPS"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/30/kmPS_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%A6%8B%5D" title="km馋"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/5c/kmchan_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%8B%E8%BD%BD%5D" title="km下载"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/0e/kmxiazai_thumb.gif"></li><li action-type="select" action-data="insert=%5BkmX%5D" title="kmX"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/69/kmX_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%83%85%E4%B9%A6%5D" title="km情书"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/51/kmqingshu_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E9%AA%B7%E9%AB%85%5D" title="km骷髅"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/0e/kmkulou_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E4%B8%BD%E8%8E%8E%5D" title="km丽莎"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8a/kmlisha_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%A6%81%5D" title="km禁"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/cb/kmjin_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%99%95%5D" title="km晕"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/38/kmyun_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%83%AD%5D" title="km热"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/kmre_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E5%86%B7%5D" title="km冷"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/d0/kmleng_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E7%8C%AB%5D" title="km猫"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/10/kmmao_thumb.gif"></li><li action-type="select" action-data="insert=%5Bkm%E6%8B%9C%E5%B9%B4%5D" title="km拜年"><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/df/longniankm_thumb.gif"></li></ul>
									</div>
								</div>
							</div>
						</div> <!-- end comment box -->
					</div>
				</div>

				<div class="index-box">
					
					<?php foreach ($reply as $k=>$item):?>
						<div class="reply-item clearfix" id="reply-<?=$item['id']?>">
							<div class="reply-left">
								<?=anchor("/u/{$item['reply_user_id']}",img('http://bbs.uc.cn/uc_server/avatar.php?uid=12499406&size=middle'),null,'reply-user-img')?>
								<p><?=anchor("/u/{$item['reply_user_id']}",$item['reply_user_name'])?></p>
							</div>					
							<div class="reply-right">
								<div class="reply-meta">
									<a href="">玄铁剑客</a>
									<span> | </span>
									<span> 发表于 <?=date('Y年m月d日 H:i',$item['reply_time']);?> 来自ZTE N881E Build |  </span>
									<a href="">只看该作者</a>
									<a class='reply-lou' href="#reply-<?=$item['id']?>"><?=$k+1?>楼</a>
								</div>
								<div class="reply-text">
									<div class="reply-text-content">
										<?=$item['reply_text']?>
									</div>
									<div class="reply-bottom">
										<a href="javascript:app.bbs.reply(<?=$item['id']?>)">回复</a>
										<a href="javascript:app.bbs.up(<?=$item['id']?>)">支持</a>
										<a href="javascript:app.bbs.down(<?=$item['id']?>)">反对</a>
									
									</div>
									

								</div>
							</div>					
						</div>
					<?php endforeach;?>
					<?php if(empty($reply)):?>
					<div  class="noreply">
						<p>还没有回复哦,快来抢沙发!</p>
					</div>
					<?php else:?>
					<div class="load-more-reply">
						<button class="load-reply">加载更多</button>
					</div>
					<?php endif;?>
				</div>  <!-- end index-box -->

		
		</div>
	<div id="side-share">
		<a href="" class="qzone"></a>
		<a href="" class="weibo"></a>
		<a href="" class="tqq"></a>
	</div>
	</div>

</div>
<?php template('footer');?>